package com.unitd.modules.comm.exception;


/**
 * @desc 自定义异常类, 用于处理配置中心服务端出现的已定义异常信息
 * @filename ConfigServerException.java
 * @copyright www.unitd.com
 * @author Hudan
 * @version 1.0
 * @date 2018-01-30
 */
public class ConfigServerException extends RuntimeException {

	/** 异常代码 */
	private int code;

	public ConfigServerException() {
	}

	public ConfigServerException(int code, String msg) {
		super(msg);
		this.code = code;
	}

	public int getCode() {
		return code;
	}
}